<?php

namespace App\Models;


class BonusLog extends BaseModel
{
    protected $table = "bonus_log";

    protected $redisTable = "bonus_log";

//    protected $rules = [
//        'admin_id' => 'required',
//        'shop_id' => 'required',
//        'bucket_num' => 'required',
//        'type' => 'required',
//        'description' => 'required',
//    ];
//
//    protected $message = [
//        'admin_id.required' => '日志数据非法',
//        'shop_id.required' => '日志数据非法',
//        'bucket_num.required' => '日志数据非法',
//        'type.required' => '日志数据非法',
//        'description.required' => '日志数据非法',
//    ];

    protected $casts = [
        'bonus' => 'array',
    ];

}